package com.xh.bussiness.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xh.bussiness.system.bean.dto.DictionaryRelBean;
import com.xh.bussiness.system.bean.request.DictionaryRelRequest;
import com.xh.bussiness.system.dao.DictionaryRelMapper;
import com.xh.bussiness.system.model.DictionaryRel;
import com.xh.bussiness.system.service.IDictionaryRelService;
import com.xh.core.bean.XhPage;
import com.xh.core.service.impl.BaseServiceImpl;
import com.xh.core.util.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 字典关系 服务实现类
 * </p>
 *
 * @author Pitt zhang
 * @since 2019/2/27
 */
@Service
public class DictionaryRelServiceImpl extends BaseServiceImpl<DictionaryRelMapper, DictionaryRel> implements IDictionaryRelService {

    @Autowired
    DictionaryRelMapper dictionaryRelMapper;

    @Override
    public XhPage queryDictionaryRelPage(XhPage page, DictionaryRelRequest bean) {
        return dictionaryRelMapper.queryList(page, bean);
    }

    @Override
    public List queryDictionaryRel(DictionaryRelRequest bean) {
        return dictionaryRelMapper.queryList(bean);
    }
}
